<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>三元表达式</title>
	</head>
	<body>
		<script type="text/javascript">
			// 条件表达式若为真，则返回表达式1的值，否则返回表达式2的值
			var num = 10;
			var result = num > 5 ? '是的' : '不是的';
			console.log(result);
		</script>
	</body>
</html>
